package com.itsu.admin.controller;

import com.itsu.admin.mvc.Result;
import com.itsu.admin.service.MainPageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Jerry.su
 * @Date 2022/1/2 15:31
 */
@RestController
@RequestMapping("/main")
public class MainPageController {

    @Resource
    private MainPageService mainPageService;

    @GetMapping("/navs")
    public Result getNavs() {
        return mainPageService.getNavs();
    }
}
